<!-- <%@ page contentType="text/html;charset=UTF-8" language="java" %> -->
<!DOCTYPE html>
<html lang="zh-CN" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>管理系统管理者提案编制</title>

    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    <link href="https://cdn.bootcss.com/bootstrap-datetimepicker/4.17.47/css/bootstrap-datetimepicker-standalone.css" rel="stylesheet">


</head>
<body style="background-color:#EEEEEE;">
    <div style="padding: 20px;">
        <div class="container-fluid">
            <div class="row">
                <h1 style="text-align:center;color: #5BA9B8">能力规范文稿管理系统</h1>
                <div class="col-md-12">
                    <p th:text="'你好('+${name}+')'" class="pull-left" style="font-size: 15px"></p>
                    <a th:href="@{/logout}+ '?token=' + *{token}" role="button" class="btn btn-danger pull-right" style="margin-bottom:10px;">注销</a>
                    </p>
                </div> 
                <div class="col-md-3" >
                    <div style="background-color:#FFF;height: 600px;">
                        <div class="list-group">
                            <a href="#" class="list-group-item active" >
                                管理者
                            </a>
                            <a th:href="@{/admin/home}+ '?token=' + *{token}" class="list-group-item">主页</a>
                            <a th:href="@{/admin/proposal/search}+ '?token=' + *{token}" class="list-group-item">提案列表</a>
                            <a th:href="@{/admin/proposal/create}+ '?token=' + *{token}" class="list-group-item" style="background-color: #ddd">提案编制</a>
                            <a th:href="@{/admin/recommend/create}+ '?token=' + *{token}" class="list-group-item">推荐会员</a>
                            <a th:href="@{/admin/Pstandard}+ '?token=' + *{token}" class="list-group-item">规范编制</a>
                            <a th:href="@{/admin/standard/list}+ '?token=' + *{token}" class="list-group-item" >平台规范</a>
                            <a th:href="@{/admin/pass}+ '?token=' + *{token}" class="list-group-item" >会员审批</a>
                            <a th:href="@{/admin/proposal/pass}+ '?token=' + *{token}" class="list-group-item">提案审批</a>
                            <a th:href="@{/admin/standard/pass}+ '?token=' + *{token}" class="list-group-item">规范审批</a>
                            <!--分发权限-->
                            <a th:href="@{/admin/helper/add}+ '?token=' + *{token}" class="list-group-item" >添加帮手</a>
                            <a th:href="@{/admin/edit}+ '?token=' + *{token}" class="list-group-item">信息维护</a>
                        </div>
                    </div>
                </div>
                <div class="col-md-9">
                    <div style="background-color:#FFF;border-radius: 10px;">
                        <div style="background-color:#fff; padding:20px;border-radius: 10px;">
                            <p style="font-size: 25px;font-weight: 600;">提案编制</p>
                            <hr>
                            <form th:action="@{/admin/proposal/create}+ '?token=' + *{token}" method="post">
                                <div class="row">
                                    <div class="col-md-2">
                                        <div class="form-group">
                                          <label class="control-label" for="name">提案名称<span style="color:red;">*</span>
                                          </label>
                                        </div>
                                    </div>
                                    <div class="col-md-8">
                                      <div class="form-group">
                                          <input type="text" maxlength="25" name="title" class="form-control" id="name" placeholder="提案名称（少于25字)">
                                      </div>
                                    </div>
                                    <div class="col-md-2">
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-md-2">
                                      <div class="form-group">
                                          <label for="content">提案内容<span style="color:red;">*</span>
                                          </label>
                                      </div>
                                    </div>
                                    <div class="col-md-8">
                                        <div class="form-group">
                                            <textarea id="content" name="content" style="width: 100%;height: 350px;" maxlength="500" placeholder="请写下您的内容(不超过500字)"></textarea>
                                        </div>
                                    </div>
                                    <div class="col-md-2">
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-md-2">
                                    </div>
                                    <div class="col-md-3">
                                        <input type="reset" id="resetfile" name="resetfile" class="btn btn-primary" value="重置">
                                    </div>
                                    <div class="col-md-4">
                                        <label for="read">
                                            <input type="radio" name="read" id="read" checked>
                                            <a href="/ContentStandard.html" ><span style="color: #D9534F;">我已阅读提案编制约束文档</span></a>
                                        </label>
                                    </div>
                                    <div class="col-md-2">
                                        <input  type="submit" id="send" name="send" class="btn btn-primary" value="提交">
                                    </div>
                                    <div class="col-md-1">
                                    </div>
                                </div>
                            </form>
                            <div style="margin-top: 50px;">
                                <div style="border:1px solid #000;margin-bottom: 10px;"></div>
                                <span style="font-size: 15px;">提案列表</span>
                                <input name="print" id="print" type="button" class="btn btn-info pull-right" onclick="JavaScript:alert('未检测到打印机！')" value="打印">
                                <div style="border:1px dashed #ccc;margin-top: 40px;"></div>
                                <br>
                                <div class="row">
                                    <table class="table table-hover">
                                        <tr>
                                            <th >选择</th>
                                            <th >提案编号</th>
                                            <th >提案名称</th>
                                            <th >提交时间</th>
                                            <th >提案状态</th>
                                            <th >查看提案</th>
                                        </tr>
                                        <tr th:each="proposal,iterStat : ${proposals}" >
                                            <td  scope="row" > <input type="checkbox"></td>
                                            <td th:text="${proposal.id}" ></td>
                                            <td th:text="${proposal.title}" ></td>
                                            <td th:text="${#dates.format(proposal.creatat,'yyyy-MM-dd HH:mm:ss')}" ></td>
                                            <div th:switch="${proposal.status}">
                                                <td th:case="0" >待审核</td>
                                                <td th:case="1" >审核通过</td>
                                                <td th:case="2" >已备案</td>
                                                <td th:case="3" >已立案</td>
                                            </div>
                                            <td >
                                                <a th:href="@{/user/proposal/read} + '?proposal=' + ${proposal.id} + '&token=' + *{token}" role="button" class="btn btn-info" >查看</a>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>

<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
</body>
</html>